package com.d5xx.hunters.events;

import com.d5xx.hunters.API.Hunter;
import com.d5xx.hunters.API.HunterPlayer;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;

public class PlayerQuit implements Listener {
    @EventHandler
    public void onPlayerQuit(PlayerQuitEvent event) {
        Player player = event.getPlayer();
        HunterPlayer hunterPlayer = Hunter.getHunterPlayer(player);
        hunterPlayer.disableScoreboard();

        switch (hunterPlayer.getType()) {
            case "lobby":
            case "lobby-waiting":
            case "game-fall":
            case "game":
            case "death":
                break;
        }
    }
}
